package com.my.coolq.api.request;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * 加好友
 * @author ch
 *
 */
public class AddFriendRequest implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8763641973703771818L;

	/**
	 * 加好友请求的 flag（需从上报的数据中获得）
	 */
	private String flag;
	
	/**
	 * 是否同意请求 默认 ture
	 */
	private Boolean approve;
	
	/**
	 * 添加后的好友备注（仅在同意时有效）
	 */
	private String remark;
	

	public AddFriendRequest() {
		super();
	}

	public AddFriendRequest(String flag, Boolean approve) {
		super();
		this.flag = flag;
		this.approve = approve;
	}

	public AddFriendRequest(String flag, Boolean approve, String remark) {
		super();
		this.flag = flag;
		this.approve = approve;
		this.remark = remark;
	}


	public String getFlag() {
		return flag;
	}


	public void setFlag(String flag) {
		this.flag = flag;
	}


	public Boolean getApprove() {
		return approve;
	}


	public void setApprove(Boolean approve) {
		this.approve = approve;
	}


	public String getRemark() {
		return remark;
	}


	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}

}
